org.jboss.byteman.agent.adapter.cfg
Class TryCatchDetails

java.lang.Object
  extended by org.jboss.byteman.agent.adapter.cfg.TryCatchDetails

public class TryCatchDetails
extends java.lang.Object

auxiliary used by CFG to store details of a specific try catch block


Constructor Summary
TryCatchDetails(CFG cfg, org.objectweb.asm.Label start, org.objectweb.asm.Label end, org.objectweb.asm.Label handler, java.lang.String type, boolean isTriggerHandler)
          construct a try catch details instance
 
Method Summary
 void addOpenEnter(CodeLocation openEnter)
          add a new monitor enter location to the list of open locations associated with this handler maintaining the reverse position ordering
 void addOpenLocations(java.util.List<CodeLocation> openMonitorEnters)
          add all the open locations associated with this handler to the supplied list of open locations maintaining the reverse position ordering
 void addShadowRegion(TryCatchDetails tryCatchDetails)
          add a shadowing region to the list of regions which shadow this one
 boolean containsOpenEnter(CodeLocation openEnter)
          check if a monitor enter location belongs to the list of open locations associated with this handler
 org.objectweb.asm.Label getEnd()
           
 org.objectweb.asm.Label getHandler()
           
 java.util.Iterator<CodeLocation> getOpenEnters()
           
 java.util.List<TryCatchDetails> getShadowRegions()
           
 org.objectweb.asm.Label getStart()
           
 java.lang.String getType()
           
 boolean isTriggerHandler()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TryCatchDetails

public TryCatchDetails(CFG cfg,
                       org.objectweb.asm.Label start,
                       org.objectweb.asm.Label end,
                       org.objectweb.asm.Label handler,
                       java.lang.String type,
                       boolean isTriggerHandler)
construct a try catch details instance

Parameters:
cfg -
start -
end -
handler -
type -
isTriggerHandler -
Method Detail

getStart

public org.objectweb.asm.Label getStart()

getEnd

public org.objectweb.asm.Label getEnd()

getHandler

public org.objectweb.asm.Label getHandler()

getType

public java.lang.String getType()

isTriggerHandler

public boolean isTriggerHandler()

addOpenEnter

public void addOpenEnter(CodeLocation openEnter)
add a new monitor enter location to the list of open locations associated with this handler maintaining the reverse position ordering

Parameters:
openEnter -

containsOpenEnter

public boolean containsOpenEnter(CodeLocation openEnter)
check if a monitor enter location belongs to the list of open locations associated with this handler

Parameters:
openEnter -

addOpenLocations

public void addOpenLocations(java.util.List<CodeLocation> openMonitorEnters)
add all the open locations associated with this handler to the supplied list of open locations maintaining the reverse position ordering

Parameters:
openMonitorEnters -

getOpenEnters

public java.util.Iterator<CodeLocation> getOpenEnters()

addShadowRegion

public void addShadowRegion(TryCatchDetails tryCatchDetails)
add a shadowing region to the list of regions which shadow this one

Parameters:
tryCatchDetails -

getShadowRegions

public java.util.List<TryCatchDetails> getShadowRegions()


Copyright © 2012. All Rights Reserved.